package com.example.debangfix.controller;


import com.example.debangfix.service.FixUserMonthBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
@RequestMapping("/web")
public class HomeController {

    @Autowired
    private FixUserMonthBillService fixUserMonthBillService;

    @RequestMapping("/fixUserMonthBill")
    public String fixUserMonthBill(){
        try {
            fixUserMonthBillService.fixUserMonthBill();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return "成功";
    }

}
